package org.zht.dormpro.dorm.mapper;

import org.apache.ibatis.annotations.*;
import org.zht.dormpro.auth.bean.PageBean;
import org.zht.dormpro.dorm.model.TbFloor;

import java.util.List;

public interface TbFloorMapper {
    @Delete({
        "delete from tb_floor",
        "where id = #{id,jdbcType=INTEGER}"
    })
    int deleteByPrimaryKey(Integer id);


    int insertSelective(TbFloor record);

    @Select({
        "select",
        "id, floor_id, floor_name, floor_append, floor_status",
        "from tb_floor",
        "where id = #{id,jdbcType=INTEGER}"
    })
    @ResultMap("org.zht.dormpro.dorm.mapper.TbFloorMapper.BaseResultMap")
    TbFloor selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbFloor record);

    List<TbFloor> getAllFloorByCondition(PageBean pageBean);

    List<TbFloor> getAllFloor(@Param("all") Integer all);
}